#!/bin/bash
# Author: Redbrother
# Email: 728083668@qq.com
# WebSite: https://help.ubuntu.com/community/LiveCDCustomizationFromScratch
# license: None
set -e
#自定义版本项
ARCH=amd64
RELEASE=bionic
installer_url=http://mirrors.163.com/ubuntu/
IMAGE=ubuntu-$RELEASE


############################################
cd squashfs-root
rm -f etc/resolv.conf
cp -f /etc/resolv.conf etc/
mount -o bind /dev dev/
mount -o bind /sys sys/
mount -o bind /proc proc/
mount -o bind /dev/pts dev/pts/
chroot . rm -f /sbin/initctl
chroot . dbus-uuidgen > /var/lib/dbus/machine-id
chroot . dpkg-divert --local --rename --add /sbin/initctl
chroot . ln -s /bin/true /sbin/initctl
cd ..
	echo -e "mount successfully done"
	echo -e "you can diy it in squashfs-root contents "   







